moved getDirectionTowards method to entity
removed previous changes to enemy's code