* @param y y-axis
* @throws FactoryException if the code is illegal.
*/
protected void addSprite(char spriteCode, int x, int y) throws FactoryException {
assert theBoard != null : "Empty board: (" + x + ", " + y + ")->" + spriteCode;
Sprite theSprite = getSprite(spriteCode);
if (theSprite != null) {
theBoard.put(theSprite, x, y);
}
}