moar refactoring. moved flippers to it's own file, added comments