doing some refactoring
added tile cost -- trickstery
add next prime solution