changed the endpopup

added new animation
endpop no shows an animation instead of an image
replaced the getRange function from endpop to utility class