Added basic mechanism for giving XP/leveling up, reworked code organization