Refactored collision check to its own function.
Refactored EntityMaps. Also rehauled collision system to be more generic.