Added getLinesFromBox

Gets a set of four lines given the box index.
Added method to see if a box is closed.