Tic Tac Toe game issues

You might want to take a small break

What tutorial did you base your Project on? It would help others to find your bug. You say you are a beginner.. You have a lot of code for a beginner. You could also post your Project aia here in the discussion.

In the meanwhile you might consider this tic tac toe example: