finally fixed a bug that would instantly close the game (because input was never actually polled and the end game key probably initialized in a random state)