added some functionality to the GUI. Now it checks if a move is possible