Handles invalid move