refactor oscillate and stillLife