wrote enemy class