The apple placement logic does not validate the generated apple coordinates against the snake’s body positions.
As a result, the apple can appear directly on top of the snake. The apple should be placed only on empty cells, not overlapping with the snake. This error causes unexpected instant apple consumption, breaks gameflow consistency and may lead to unpredictable behavior in some spawn conditions