Added first function to tictactoe.java class and a test to check first player