/**
	 * Clears the console window when running under Linux or Mac OS
	 * (does not work within Eclipse).
	 */
	public static void clearScreen() {
		System.out.println("\033[H\033[2J");
		System.out.flush();
	}
	
	/**
	 * Sleeps for a specified amount of fractional seconds.
	 * @param secs
     *
     * Requires the following import:
     *     import java.util.concurrent.TimeUnit;
	 */
	public static void sleep(double secs) {
		try {
			TimeUnit.MILLISECONDS.sleep((long)(1000*secs));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}