Java program that can determine the outcome of a Tic Tac Toe game