Bugfix: overlapping turns

loop breaks after key is pressed to prevent the snake from running into
itself when it shouldn't