first attempt at hsync/vsync FSM