fixed code in rook checks