Fixed a bug where the INT1 interrupt was being triggered at the start of the program because I hadn't cleared the INT1 interrupt flag.