reintroduced timeStep in main and introduced pause feature