private void DtShowREsultWindow_Tick(object sender, EventArgs e)
        {
            GetScoreCountdown++;

            //Wacht 2 seconden voor dat hij het resultscherm laat zien
            if (GetScoreCountdown == 2)
            {
                Result = new ResultWindow(LevelLoader, Score);
                Result.Show();
                Close();
            }
        }
        private void DtLetItemFall_Tick(object sender, EventArgs e)
        {
            //Haalt de foto op en zet deze 5 naar voren en 2 naar beneden
            imgPlayer.Margin = new Thickness(imgPlayer.Margin.Left + 5, imgPlayer.Margin.Top + 2, imgPlayer.Margin.Right, imgPlayer.Margin.Bottom);
            Rect ImgPlayerRect = new Rect(imgPlayer.Margin.Left, imgPlayer.Margin.Top, imgPlayer.ActualWidth, imgPlayer.ActualHeight);
            Rect ImgStar       = new Rect(StarImage.Margin.Left, StarImage.Margin.Top, StarImage.ActualWidth, StarImage.ActualHeight);

            spScore.Children.Clear();
            Score++;
            SetScore();

            if (Keyboard.IsKeyDown(Key.Space))
            {
                //Zet de foto 15 naar boven
                imgPlayer.Margin = new Thickness(imgPlayer.Margin.Left, imgPlayer.Margin.Top - 15, imgPlayer.Margin.Right, imgPlayer.Margin.Bottom);
            }

            foreach (Rect block in Blocks)
            {
                //Bots de foto met een block
                if (ImgPlayerRect.IntersectsWith(block))
                {
                    switch (LevelLoader)
                    {
                    case 0:
                        dtShowREsultWindow.Start();
                        GameOverImage.Visibility = Visibility.Visible;
                        LoserGif.Visibility      = Visibility.Visible;
                        LoserGif_Copy.Visibility = Visibility.Visible;
                        dtLetItemFall.Stop();


                        break;

                    case 1:
                        dtShowREsultWindow.Start();
                        GameOverImage.Visibility = Visibility.Visible;
                        dtLetItemFall.Stop();

                        break;

                    case 2:
                        dtShowREsultWindow.Start();
                        GameOverImage.Visibility = Visibility.Visible;
                        dtLetItemFall.Stop();

                        break;
                    }
                }
            }

            //Bots de player met de star doe dan het volgende
            if (ImgPlayerRect.IntersectsWith(ImgStar))
            {
                dtTimer.Stop();

                gGame.Children.Clear();
                Blocks.Clear();

                LevelLoader++;
                LoadLevel();
                imgPlayer.Margin = new Thickness(10, 200, 0, 0);
                if (LevelLoader == 3)
                {
                    dtLetItemFall.Stop();

                    Result = new ResultWindow(LevelLoader, Score);
                    Result.Show();
                    Close();
                }
            }
        }