Function to set players as X or O