Game engine class and functions, XO game