Started work on collision routines

Split off collision code into it's own file, and started on routines to
allow actions in response to collisions.