Use reference to player object, don't copy it

Similar pieces of code are in other parts of the file, but they use reference. In this function `u` is not changed, so I made it a const reference instead of a copy. This speeds the AIM up, as the player assignment operator is pretty heavy (copies the whole inventory).