Start the game by pressing the green flag only once is needed it may be a little buggy This is the start of my game before there is anything but you and walls. I have added a mini map and it should be accurate but please tell me if it isn't Please comment below any ideas that you have i will take them and maybe make them into the game so if you want your ideas in it you can comment below (this is not the full or real project it is the basic code so it will be much different in the real project so do not think this is it)
Give thanks to @griffpatch I used his tutorial on https://www.youtube.com/ for the making of this project so he was a big help