/// A struct representing a position in the grid
#[derive(Clone, Copy, Debug, PartialEq, Eq)]pubstructPosition{/// X coordinate (column)
pubx:usize,
/// Y coordinate (row)
puby:usize,
}implPosition{/// Creates a new position with the given coordinates
pubfnnew(x:usize, y:usize)->Self{
Position { x, y }}}