implemented castle
found a bug with finding hot cells - figure itself should not count as hit cell
implemented castle (finally this time)
some code formatting
finally, rules are implemented (except en passant); and fixed some bugs