//calls in the important methods of drawing the pacman and ghosts sprites
        //along with its movement scripts
        public void PlayGame()
        {
            pacman.animateddirection();
            pacman.Draw();
            pacman.Move();

            //calls in the foreach methods to draw and provide movement for the ghosts
            GhostsMove();
            GhostsDraw();

            //each time pacman eats a pellet it increases his score by 1;
            if (pacman.Eatpellets())
            {
                points++;
                if (points == 10)
                {
                    points += 1;
                }
                if (points == 25)
                {
                    points += 5;
                }
            }

            //if (maze.NKibbles == points)
            //{
            //    wingame = true;
            //}
        }