Hey there, currently doing a project that is literally driving me insane

Hi @anon7392053

welcome to the arduino-forum.

You should describe in detail what steps you have personally done to achieve the goal.

If it is driving you "insane" it must be either a lot of try and error
or
not understanding how to write the code.

Anyway post a description of what you have done so far following the advice that is given here:
I'm pretty sure that you agree and will follow the way how to solve your problem mimimum 200 minutes faster.
This requires to invest 20 minutes of your precious time to read how to speedup solving your problems.

Directly after registering you got presented informations how to speed up solving your problem.
You should really read it.

best regards Stefan