//When a player enters a cave, which cave to move to is needed. The player is moved to that cave
        //and the caves the player can move to are printed. Also the available arrows are printed.
        public static void EnterCave(Player player, int caveNumber, StreamWriter writer)
        {
            player.playerCaveNumber = caveNumber;
            writer.WriteLine("You have now entered cave {0}.", player.GetPlayerCaveNumber());

            //Until we create a map, the adjacent caves are just the next numbers for simplicity.
            int adjacentCave1 = player.GetPlayerCaveNumber() + 1;
            int adjacentCave2 = player.GetPlayerCaveNumber() + 2;

            //Since the adjacent caves are just the next in sequence, these if statements make
            //sure the adjacent caves are within the 5 caves.
            if (adjacentCave1 > 5)
            {
                adjacentCave1 -= 5;
            }
            if (adjacentCave2 > 5)
            {
                adjacentCave2 -= 5;
            }

            //Printing where the player can move to next and how many arrows they have.
            writer.WriteLine("Tunnels lead to caves {0} and {1}", adjacentCave1, adjacentCave2);
            writer.WriteLine("You have {0} arrows.", player.GetPlayerArrows());
        }