Try not to be too hard on yourself, it's great that you tried, and that you submitted something! Even if it doesn't work, it's still a step in the right direction, and I hope you are able to take what you have learned and go on to make something you're proud of. Keep making games! :)