Seperated funciton definitions and structs to header file

This is preparing for the implementation of the AI with the tictacgame.c
library.  There is currently a main function there but that will be
moved to another file in a later commit.