displaying simulation in canvas