How it works: Grid encoded as a 1D array; player moves if next cell isn’t a wall. Checks for goal collision.
Learning outcomes: keyboard listeners, bounds checking, grid math.