Create functions.c

contains all of the used functions to play this game.