Can you post source code?
https://www.mediafire.com/file/3qcmeiwb2yddg50/Digital-Logic-Sim-main.rar/file
Thanks