private void loadObjects(FileRead fp)
	{
		String line;
		String [] words;
		int token;
		GameObject curObj;

		while (fp.hasNext())
		{
			line = fp.getLine();
			words = line.split("\\s");
			token = -1;

			if (words[0].equals("END"))
				return;

			if (words.length >= 4 && !(words[0].equals("END")))
			{
				objects.push(new GameObject());
				curObj = objects.getFirst();
				curObj.setName(words[0]);
				curObj.setX(Integer.parseInt(words[1]));
				curObj.setY(Integer.parseInt(words[2]));
				curObj.setDirection(Integer.parseInt(words[3]) != 0);

				System.out.printf("Adding: %s, (%s,%s) dir: %s\n", words[0], words[1], words[2], words[3]);
			}
		}
	}