refactored and wrote tests for increasing and decreasing selection of random banana positions