Propper snapping to grid
Implemented bounding box