Changed updating algorithm...

Oops… my bad guys