I think this will work....

I was reading through...it is kinda starting to make sense....
made some changes. can't init the game though, It is giving me errors.
Also, still having DB problems, but now,  you can bypass with
username="joseph"
We will take this out later