Thanks for leaving a comment! I didn't know how to code the game mechanics I imagined so it ended up quite glichy XD.
no problem! keep practicing :)