Create functions.py

Functions file - this file contains functions that are necessary for the game to run.