refactor as an endless runner with platforms