Created a script to control the game