added cleanup class

cleans up the monster list from node.
however, there is still a bug, because cleanup tries to access index(0)
with size(0). i dont know why