}
@Override
public void onEvent(Event e) {
if(e != null && e instanceof PlayerClickedOnLineEvent && e.getSender() != null){
PlayerClickedOnLineEvent clickEvent = (PlayerClickedOnLineEvent) e;
if(clickEvent.getLine() != null){
EventSystem.getInstance().removeListener(this);
nextMove = clickEvent.getLine();
}
}
}