Refactoring the way robot enemies move