need some help with code

but i am out of pins

Use a serial LCD, instead. Free up a bunch a pins.