created more functions and added rounds