Added area detection

Areas are created whenever a line finishes expanding. The smallest area
containing the expanded line will create two new areas divided by the
line and add them as its children. Currently, area creation does not
work as intended when two or more lines are drawn simultaneously.
However, in the final product only a single line will be expanding at
any given time.