Renamed roundUpdate to updateState
Rename function to make intention clearer
Removed unused functions
refactored due to function rename