Rook and bishop ray casting detection solved