2557 - The Drunk Jailer - Squares implementation