Fixed an index out of bounds error caused by adding enemies.