Corrected NullPointerException. Unit's destination was out of bounds of the grid.
Implemented Exception to the GridReference class to check if the attempted coordinates lie out of bounds of the grid. Other minor changes include converting the grid height and length to global variables, and provided a chain to the equals method of the GridReference.