Bugfix: A new direction of the snake wasn't accepted when the user switchted to a invalid direction before the snake moves the next step