@Override public void collide(){
  wasHit=true;
}

@ Override public void collide ( ) { wasHit = true ; }
this marks that player has collided with tile . the coin will not bounce unless collision takes place .
