public void processCollision(int weapon, int enemy, char type){
        
        switch (type) {
            case 'c': { // cannon hits enemy ship
                updateScore('c');   
                cannons.remove(weapon);
                sinkingShips.add(initials.get(enemy));
                initials.remove(enemy);
                initials.add(new TypeOneEnemy(4));
                sunkShip = true;
                buildSinkShipTimer(1);  // buld sink ship timer
                sinkShipTimer.start();
                break;
            }
            case 'm':{ // missile hits enemy ship
                updateScore('m');                 
                fireMissile = false;
                missiles.remove(weapon);
                sinkingShips.add(initials.get(enemy));
                initials.remove(enemy);
                missiles.add(new Missile());
                initials.add(new TypeOneEnemy(4));
                sunkShip = true;
                buildSinkShipTimer(1);  // build sink ship timer
                sinkShipTimer.start();
                break;
            }
            case 's':{ // shark attacks enemy
                updateScore('s');
                sinkingShips.add(initials.get(enemy));
                initials.remove(enemy);
                initials.add(new TypeOneEnemy(4));
                sunkShip = true;
                buildSinkShipTimer(1); // build sink ship timer
                sinkShipTimer.start();
                break;
            }
            case 'a': { // cannon hits shark
                cannons.remove(weapon);
                updateSharkHealth();
                break;
            }
        }
    }