When the application is closed, the "dispose" method of all the elements is called.
Added data object with screen coordenades and board positions.
Update the current player's position when he finishes his movement.