Added a way to detect if the player is colliding into an object or wall, and have all of the codes sorted by ABC.