Add setFaction()
Add collisionDetected() and createEntity()
Modify to use createEntity() and collisionDetected() in BattleState