added player turn logic