Created two threads: GameLoop and PaintLoop

These threads allow us to pause the game anywhere. Also gives us the ability to change the FPS without affecting gameplay.