began adding rook check function