PC update + switch

Fixed the code so that the PC updates after each instruction and doesn't go into an infinite loop.