fixed board out of bounds exception