package com.lousylynx.asciidots;

import com.lousylynx.asciidots.states.Dead;
import com.lousylynx.asciidots.states.IState;

public class Dot {
  private IState currentState;

  public Dot() {
      currentState = new Dead();
  }

  public void set_state(IState s) {
      currentState = s;
  }

  public void on_tick() {
      currentState.on_tick(this);
  }
}

@@ -352,11 +352,87 @@
 is);%0A  %7D
+%0A%0A  public boolean is_dead() %7B%0A    return (currentState instanceof Dead)%0A  %7D
 %0A%7D%0A

add dead check to Dot.java