generate random map
optimize animate