Adding the player, common functions, and a first pass at collision management.