creating turn for players
Refactor code