Okay I kept at it and now have something that checks for check properly but nothing to force the player from moving into check. Guess I'll keep at it.