fixed earthquake pause. code cleaned up too.