I bit down on something cold and now my tooth hurts and it look bruised near the top by the gum yesterday I couldnot touch the tooth?

Computer. Your computer can't fix your tooth, your Dentist can. Your tooth may be fractured or it may have a cavity. The gum damage may be associated wth the tooth damage or it may be a coincidental separate problem. Please see your Dentist as soon as possible for an examination and necessary imaging, differential diagnosis, and appropriate treatment plan.
See a dentist. does it hurt to bite or all the time? does the tooth appear damaged? if not then an xray maybe of value. go see your dentist...they will be able to diagnose more accurately.
Fractured tooth ? Distinct possibility. See a local dentist for an accurate diagnosis and care.