implemented rate-based energy mechanics (#15), fixed particles on relays (#13)