Refactored enemy spawn code and added random direction.