implemented collision detection

only with solid blocks