added unit prototype and refactored enemy for issue #4