added player control to limit clicking when not players turn