Working version 0.1

Working but still need refactoring and error handling.

Fixed set_possible bugs.