private void Unexplored_Click(object sender, RoutedEventArgs e) { var x = Grid.GetRow((UIElement)sender); var y = Grid.GetColumn((UIElement)sender); Game.Explore(x, y); }