diff --git a/MathColoringGame/App.xaml b/MathColoringGame/App.xaml
index cbfe8ac..09b1513 100644
--- a/MathColoringGame/App.xaml
+++ b/MathColoringGame/App.xaml
@@ -4,6 +4,10 @@
xmlns:local="clr-namespace:MathColoringGame"
StartupUri="MainWindow.xaml">
-
+
+
+
+
+
diff --git a/MathColoringGame/MainWindow.xaml b/MathColoringGame/MainWindow.xaml
index 211abf2..585f309 100644
--- a/MathColoringGame/MainWindow.xaml
+++ b/MathColoringGame/MainWindow.xaml
@@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MathColoringGame"
mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="800"
+ Title="MainWindow" Height="780" Width="650"
WindowStyle="None"
Background="Transparent"
AllowsTransparency="True"
@@ -18,7 +18,7 @@
-
+
@@ -64,16 +64,36 @@
Width="25"
FontWeight="Bold"
FontSize="18"
- Content="🗕" Click="BtnMinimizeClick"/>
-
-
+
+
+
+
+
+
@@ -81,8 +101,10 @@
-
@@ -91,6 +113,510 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MathColoringGame/MainWindow.xaml.cs b/MathColoringGame/MainWindow.xaml.cs
index 46aa476..81cc91f 100644
--- a/MathColoringGame/MainWindow.xaml.cs
+++ b/MathColoringGame/MainWindow.xaml.cs
@@ -1,17 +1,11 @@
using System;
-using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
+
namespace MathColoringGame
{
@@ -19,10 +13,161 @@ namespace MathColoringGame
/// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
- {
+ {
public MainWindow()
+
{
InitializeComponent();
+
+ NewGame();
+ }
+
+ int cellCounter;
+ int roundCounter;
+
+ private MarkTyp[] mResults;
+ private bool mPlayer1Turn;
+ //private bool mGameEnded;
+
+ //Starts a new game an clear all values back to the start
+ public void NewGame()
+
+ {
+ cellCounter = 0;
+ roundCounter = 1;
+
+ // Create a new blanck aray of free cells
+ mResults = new MarkTyp[180];
+
+ for (var i = 0; i < mResults.Length; i++)
+ mResults[i] = MarkTyp.Free;
+
+ // make sure Player1 is starts The game
+ mPlayer1Turn = true;
+
+ // interate every Cell on the grid
+ Container.Children.Cast