Fixed input parsing

Board is flipped from the judge fixed so it will be compatible.