Click see inside and look at the comments I left you. I hope this helps you iron out the bugs with your nice engine.
This is for @Thepuzzlegame