public void TestClick(Grid Grid1, Label scoreBlack, Label scoreWhite, int mouseX, int mouseY, int x, int y) { if (mouseX >= positionX && mouseX <= positionX + squareSize) { if (mouseY >= positionY && mouseY <= positionY + squareSize) { if (status == "Possible") //can't click on an existing piece { Game.Move(Grid1, x, y); //need x and y status = Game.Turn; Game.SwitchTurn(Grid1); Game.GetNewScore(Grid1, scoreBlack, scoreWhite); } } } }