Added previous field to Window for backtracking

Signed-off-by: Titouan Rigoudy <titouan.rigoudy@gmail.com>
Fix conflict

Conflicts:
	src/Window.java
Fix gitignore problems

Signed-off-by: Titouan Rigoudy <titouan.rigoudy@gmail.com>