created functions to calculate rank based on exp