added health to entities
refactored input handlers