gets the id of the currently selected object. null or 0 both indicate nothing is currently selected by the player.