Implemented logic for Rook allowed pos.