private void infield(object sender, EventArgs e) // on mouse in field { if (!game.visited(((Square)sender).x, ((Square)sender).y) && !gameOver) { ((Square)sender).ImageLocation = startupPath + hoverFieldImagePath; } }