Game loop, canvas is only redrawn while the game is running