Checkers implemented in java 8