Changed java version to 1.6 since using java.util.Deque...also fixed compiler warning