some refactoring

- added some dependencies
- added junit, and set up a test folder
- changed use of arrays to lists
- changed location (int[2]) to a domain object (Location)
- added a junit test for Location
- changed all instance variables to private, and added getters where needed
- changed the instance variables of Unit from static to instance (not sure if they
  were intended to be static or not)