cellular automatia based side scroller ( javascript )