Added a pause functionality to the game. esizing now pauses the game for 100 ms. This prvents the flashing upon resize.