Update monster.cpp

Fix compilling error.
Merge pull request #37 from brewsterl/patch-16

Update monster.cpp