move takeHit to entity class

implements clintbellanger/flare-engine#529