fixed class movemobs to use an array