public CollisionMap(String filename) throws IOException
    {
        BufferedImage img = ImageIO.read(new File(filename));
        image = img;
        for (int i = 0; i < 480; i++)
        {
            for (int j = 0; j < 640; j++)
            {
                if(i == 0 && j == 0) System.out.println("(" + i + "," + j + ") = " + img.getRGB(i,j));
                if(i == 240 && j == 340) System.out.println("(" + i + "," + j + ") = " + img.getRGB(i,j));
                Map[i][j] = (img.getRGB(i, j) != -1);
            }
        }
        System.out.println("Finished making map.");
    }