Outsourced all of the game loop functions
Split up the whole game into seperate files for more modularity