Fixed off-by-one error in challenge 12.
Challenge 14 almost complete. Still some bug which makes it fail sometimes.