Made a functioning game loop!