fixed typo: "enemy" -> "entity"