Changed parameters of select unit

Changed selectUnit method to accept a unit class reference, not just a
gameobject.