change of the way that the game loop works it is now a separate thread
that will run infinately, this means that the entire program is not
stuck in the game loop, I had not realised that the way i was doing this
prevented me from doing anything else