Added unit-tests, fixed a bug in isValid + some small changes in hexagon