public void Move(Game1.GameStage gameStage)
        {
            for (int i = iSize - 1; i > 0; i--)
            {
                body[i] = body[i - 1];
            }

            if (dir == Direction.Left)
            {
                body[0].iRow--;
            }
            if (dir == Direction.Down)
            {
                body[0].iLine++;
            }
            if (dir == Direction.Up)
            {
                body[0].iLine--;
            }
            if (dir == Direction.Right)
            {
                body[0].iRow++;
            }

            dirChanged = false;

            if (gameStage == Game1.GameStage.SinglePlayerBorderless)
            {
                if (body[0].iRow < 0)
                    body[0].iRow = 39;

                if (body[0].iRow > 39)
                    body[0].iRow = 0;

                if (body[0].iLine < 0)
                    body[0].iLine = 22;

                if (body[0].iLine > 22)
                    body[0].iLine = 0;
            }

            GraphicDirection = dir;
            isGrowing = false;
        }
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }