Takes in a ruzzle input and solves it