public class OldDot {
    private static final int MAX_STEP = 5;
    private static Die die = new Die(OldDot.MAX_STEP);
    private String dotColor;
    private int dotPosition;
    
    public OldDot(String color) {
        this.dotColor = color;
        this.dotPosition= 0;
    }

    public int getPosition() {
        return this.dotPosition;
    }

    public String getColor() {
        return this.dotColor;
    }    

    public void step() {
        this.dotPosition += OldDot.die.roll();
    }
    
    public void reset() {
        this.dotPosition = 0;
    }
    
    public void showPosition() {
        System.out.println(this.getColor() + ": " + this.getPosition());
    }
}
