create initialize function for Player object, X or O