collision detection fixes, created map generated from an array