From b6479c9826f314ddca01fdf5dc5ee8d0048322f2 Mon Sep 17 00:00:00 2001
From: Moltony <105192532+IAmMoltony@users.noreply.github.com>
Date: Sat, 14 Sep 2024 20:18:55 +0500
Subject: [PATCH] Fixed tiles not being clickable

---
 src/Board.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Board.cs b/src/Board.cs
index 00d4683..cede38e 100644
--- a/src/Board.cs
+++ b/src/Board.cs
@@ -168,11 +168,11 @@ public void Update(MouseState mouseState, MouseState mouseStateOld, KeyboardStat
                         bool left = (mouseStateOld.LeftButton == ButtonState.Released && mouseState.LeftButton == ButtonState.Pressed) || (kb.IsKeyDown(KeySettings.Get("placeTile")) && !kbOld.IsKeyDown(KeySettings.Get("placeTile")));
                         bool right = (mouseStateOld.RightButton == ButtonState.Released && mouseState.RightButton == ButtonState.Pressed) || (kb.IsKeyDown(Keys.C) && !kbOld.IsKeyDown(Keys.C));
 
-                        // Save state only if mouse is pressed
                         if (left || right)
                         {
                             SaveState();
                             CheckSolution();
+                            DoMouseInput(left, ref tiles[i, j]);
                         }
                     }
                 }