Running average working but doesnt average first and last points