Moved shaking code into the game main framework