+ 1
I've rewritten the file a little bit, should work now, there are onely some changes at JS.
https://code.sololearn.com/W7XF6po57mJa/?ref=app
+ 1
I think because you increased down and right instead of decreasing up and left. The gravity is on the left upper corner, so only left and up is important.