enemy class inheritance fixing