public class Dot {
	private Die die;
	private String dotColor;
	private int dotPosition;
	
	public Dot(String color) {
	    this.die = new Die(5);
	    this.dotColor = color;
	    this.dotPosition= 0;
	}
 
    public String getColor() {
        return this.dotColor;
    }

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