Added function that might be used in brute force algorithm

The next_cell() function will be used for getting the coords for the
next cell to try brute forcing.

Also better arranged structs and functions.