Player movemt not smooth (solved)

jsbin.com/pinuled/1/edt?html,output]

it was due to floating-point error. The error was happening at the corners of the bounding boxes, causing random stop to player’s movement. So, I had to apply special code for the corner cases.

Be careful with floating points.