Extract math functions into new math module
Extract rendering code into its own file
Turn renderer into an object
Move random generator into renderer
Extract keys
Pass canvas as param
Extract game loop
Extract world
Move limitTurnSpeed
Fix selecting planets (WIP)