On each square of an $n\times n$-chessboard, there are two bugs. In a move, each bug moves to a (vertically of horizontally) adjacent square. Bugs from the same square always move to different squares. Determine the maximal number of free squares that can occur after one move.

[i](Swiss Mathematical Olympiad 2011, Final round, problem 10)[/i]
1. **Understanding the Problem:**
   - We have an $n \times n$ chessboard.
   - Each square initially contains two bugs.
   - Each bug can move to an adjacent square (either vertically or horizontally).
   - Bugs from the same square always move to different squares.
   - We need to determine the maximal number of free squares (squares with no bugs) that can occur after one move.

2. **Initial Setup:**
   - Let's denote the squares of the chessboard by $(i, j)$ where $1 \leq i, j \leq n$.
   - Initially, each square $(i, j)$ contains two bugs.

3. **Movement Constraints:**
   - Each bug can move to one of the four adjacent squares: $(i+1, j)$, $(i-1, j)$, $(i, j+1)$, or $(i, j-1)$.
   - Since each square has two bugs, and they must move to different squares, we need to ensure that the movement is such that the bugs do not end up in the same square.

4. **Maximizing Free Squares:**
   - To maximize the number of free squares, we need to find a way to distribute the bugs such that the maximum number of squares end up with no bugs.
   - Consider the following strategy:
     - Color the chessboard in a checkerboard pattern with two colors, say black and white.
     - Each black square will have its bugs move to adjacent white squares, and each white square will have its bugs move to adjacent black squares.

5. **Checkerboard Pattern Analysis:**
   - In a checkerboard pattern, half of the squares are black and half are white.
   - If $n$ is even, there are $\frac{n^2}{2}$ black squares and $\frac{n^2}{2}$ white squares.
   - Each black square $(i, j)$ will have its two bugs move to two different adjacent white squares.
   - Similarly, each white square $(i, j)$ will have its two bugs move to two different adjacent black squares.

6. **Free Squares Calculation:**
   - After the move, each black square will be free because its bugs have moved to adjacent white squares.
   - Similarly, each white square will be free because its bugs have moved to adjacent black squares.
   - Therefore, all squares will be free after one move.

7. **Conclusion:**
   - The maximal number of free squares that can occur after one move is $n^2$.

The final answer is $\boxed{n^2}$