Added a clock
Made movement be based on time