loadChessBoard function

Loads a chessboard or matrix alike input file.