Added collision detection and gridbased movement, where each pixel represent one map pixel