I can just recommend you to stop working on this project and carry on with the development when you have
some (and enough!) experience for what you're trying to do and when you really know the code you're using.
Make something simpler instead, even if it's just a pong clone. The most important thing is that you try to do
something achievable, something within your reach.
With this you'll have the least problems and will learn pretty fast.
That's the best and only advise I can give to you.
Anyway, I wish you the best luck with your project(s) and hope that you won't be too disappointed if things don't
go as you've expected them to be.
regards, Alex