Implemented player turn logic