attached are my wiring and code for the project i am working on
however when i ran the code in a physical environment it does not work as intended
first, it displays twist noise across the entire screen even though it is no where near that position in the code
the first if statement is seemingly ignored (it prints 3,2,1) then it displays this character that is constantly flickering (the lcd itself is not flickering but there is a character the is constanly changing)
You have three functions with return types and no return statements.
In each decision to lose, you are not setting lose to true, instead you are comparing it to true and this is likely optimized away by the compiler.
Hit is always true.
You should start it as false, and at the beginning of the while, you will need to reset it to false.
Also, you are using digital read on analog pots, this won't work. Make a simple program with just one pot. Check out tutorials on it and make it print values to the display. You may find that you need a differential value, such as moving it at least 5.
This project looks to have been made all at once, with little to no testing of individual pieces. The result is that it is very difficult to find all the things wrong.
You should make one thing at a time, write code for it and test it, then do so with each other thing. After all of that, start combining things one at a time. That way, each time you hit an error, it's very likely the last thing that you did or added that caused it.