Modified TileAnimation class: now possible to choose different animation lengths