my code is
var stone = new Image(20, 20); var grass = new Image(20, 20); var dirt = new Image(20, 20); stone.id = \'stone\' ; stone.src = \'stone.p