fixed orientation but error

Uncaught TypeError: Cannot read property '0' of undefinedindex.html:128
eachblockindex.html:731 drawPieceindex.html:708 drawNextindex.html:679
drawindex.html:196 frame