map2d

basicly complish the map2d function.
now all calculation is in bricks.js
problem when detecting downword jumping possibilities.