Fixing bugs

1. button inputs not latching correctly
2. outputs not being updated on correct clock cycle