got the blocks to be resized properly
fixed small bug with detect function
good progress on prob 3