Add error handling to createTexture()
Add param validation to setCellState()