Implements a general mechanism for spawning monsters and powerups