Tried implementing rook functinos