Added SFML functions and the game loop