This is the same engine I used. I just edited the code a bit. (added things and got rid of unwanted code)