Code refactoring and stop enemies from running right under you