fixed bugs when invalid move was made