@Override
public void execute() {
switch (direction) {
case KeyEvent.VK_LEFT:
circleToMove.setCentar(new Tacka(circleToMove.getCentar().getX()-1, circleToMove.getCentar().getY()));
break;
case KeyEvent.VK_RIGHT:
circleToMove.setCentar(new Tacka(circleToMove.getCentar().getX()+1, circleToMove.getCentar().getY()));
break;
case KeyEvent.VK_UP:
circleToMove.setCentar(new Tacka(circleToMove.getCentar().getX(), circleToMove.getCentar().getY()+1));
break;
case KeyEvent.VK_DOWN:
circleToMove.setCentar(new Tacka(circleToMove.getCentar().getX(), circleToMove.getCentar().getY()-1));
break;
}
MainWindow.getInstance().drawImage();
}