gravity simulation in elixir