Integrated uart into the pacman game. Slightly changed mode switching logic. Needs to be tested on the board