@Override
	public void collidedWith(Entity other) {
		//if collides with food add new tail segments
	        if (other instanceof FoodEntity) {
			for(int i=0; i < 6; i++){
			SnakeTailEntity tailSeg = new SnakeTailEntity("snakeclone/Res/BlueSnakeBody.gif", this);
			entities.addLivingEntity(tailSeg);
			snakeTail.add(tailSeg);
			}
		}
		//if collides with dail end the game
		if (other instanceof SnakeTailEntity) {
			game.loose();
		}
	}