Added grouping (extremely shittily. Will rewrite this withnested JPanels).