Added basic logic for move validation. Created HnefltaflState and Piece classes. Fixed bugs in some tests.
Added validation for moving pieces to corners.
Added support for moving king normally
Improved HnefltaflState with toString() and hashCode()
Added tests for HnefltaflState and fixed some bugs.
Added support for simple capture.
Added support for corner capture.
Added support for king winning. Fixed bug for adding and removing king.
Added support for checking winner is declared correctly.
Refactored validation by splitting into functions. Fixed a bug relating to the state representation.
Refactored piece and king capture to own functions.
Refactored duplicate code for detecting captures.
Refactored duplicate code for method checking pieces do not skip over occupied positions.
Refactored index representation from coded int to Position object.
Expanded previous refactoring: index representation as Position object.
Refactored to use Optional<Piece> in HnefltaflState objects.