Fixed collision detection for top, bottom, left and right walls. Haven't done top-left, top-right, bottom-left and bottom-right yet