2d simulator