Creates a window and game loop using pygame