public MonsterObject(Canvas canvas, int level) { TopLeftPosistionX = random.Next(10, (int)canvas.Width); TopLeftPosistionY = random.Next(10, (int)canvas.Height / 2); Width = 20; Height = 20; IsAlive = true; step = 2; if (level > 7) { step += 1; } else { DropDown -= level; } var directionAsNumber = random.Next(1, 5); _direction = (Direction)directionAsNumber; Image = GameObjectHelper.ReadImageFromFile(@"ms-appx:///Assets/monster.png", Width, Height); GameObjectHelper.AddToGameBoard(Image, TopLeftPosistionY, TopLeftPosistionX, canvas); _canvas = canvas; }