Changed source to idiomatic java and renamed Cubes -> Pieces, map ->
board