rook and knight moves redesigned to enable correct movement