refactor tic_tac_toe class methods place_x and plac_y in matrix to be more D.R.Y(don't repeat yourself)