Finds the minimum

TODO: find the maximum, connect 9 signals to the entity