fixed/adjusted cont()
added timer.sleep()

similar to love2d's timer.sleep