Fix division bug
Updated xcode file
Implemented end of screen features