added tictactoe core into class and renamed files for readability