# "Crushing it" Level Help

**URL:** <https://discourse.codecombat.com/t/crushing-it-level-help/15063>\
**Category:** Uncategorized\
**Created:** [June 27, 2018, 5:42pm UTC](https://discourse.codecombat.com/t/crushing-it-level-help/15063 "2018-06-27T17:42:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pameleen](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/pameleen/32/17789_2.png) [@Pameleen](https://discourse.codecombat.com/u/Pameleen)\
**Post date:** [June 27, 2018, 5:42pm UTC](https://discourse.codecombat.com/t/crushing-it-level-help/15063/1 "2018-06-27T17:42:21Z")

</div>

My son is having trouble with the level “Crushing It”

His code:

```python
# Spawn a hero using game.spawnPlayerXY(type, x, y).
player = game.spawnPlayerXY("captain", 36, 30)
game.addSurviveGoal()
# Add a goal to defeat ogres with game.addDefeatGoal()
game.addDefeatGoal(4)

game.spawnXY("munchkin", 40, 10)
# Spawn at least 3 more munchkins.
mySpawn = game.spawnXY("munchkin", 35, 30)
mySpawn = game.spawnXY("munchkin", 38, 30)
mySpawn = game.spawnXY("munchkin", 36, 32)

```

I am usually able to help him, but I am missing something.

Thanks.

---

<div class="post-metadata">

**Author:** ![Seojin\_Roy\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/seojin_roy_lee/32/23539_2.png) [@Seojin\_Roy\_Lee](https://discourse.codecombat.com/u/Seojin_Roy_Lee)\
**Post date:** [June 27, 2018, 8:38pm UTC](https://discourse.codecombat.com/t/crushing-it-level-help/15063/2 "2018-06-27T20:38:03Z")

</div>

you don’t need to add `mySpawn` for the munchkins 3 times. You just need  
`game.spawnXY("unit or item in here", "the x position of the unit or item here", "the y position of the unit or item here")`.  
Example:

```python
game.spawnXY("ogre", 42, 36)

```

that will spawn an ogre in the position `42, 36`

---

<div class="post-metadata">

**Author:** ![SuperSmacker](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/supersmacker/32/8385_2.png) [@SuperSmacker](https://discourse.codecombat.com/u/SuperSmacker)\
**Post date:** [June 28, 2018, 7:28pm UTC](https://discourse.codecombat.com/t/crushing-it-level-help/15063/3 "2018-06-28T19:28:32Z")

</div>

That’s not the problem.

For the Defeat Goal, there isn’t supposed to be an input. Remove the “4” for the defeat goal and you will be all set.
