Add error checking for out of bounds and threeBlock access