Code not working as intended

You still need two debouncers, one for each pin - you are only using one and that cannot work. Look at an example