Added Grid Class

Also made the code compatible with JRE 1.7. Grid class still needs a lot
to be completed, should take a week or so.