Made all delegate calls optional.
Initialized a multi peer manager.
Adding new story boards for iPhone and iPad.
Both iPhone and iPad works.
Added buttons and connected them.
Now everything should be set up.
Almost working.
Removed logs.
Using iPhone storyboard for iPhone.
Added a restart button that will restart the game.
Implemented some multiplayer methods.
Only let ball outside of play scene lead to restart in single player mode.
Multiplayer mode is now set up with one peer that is initiator and the other peer has no visible ball.
Singleplayer game over restarts the game as before.
Attempted to handle the start in single and multiplayer mode.
Now the peer that initiates browsing only gets it’s delegate updated after the user presses done or cancel.
Clarified that browsing and sending messages is not allowed if a peer is already connected.
Centralized updating the delegate in a method. Also making sure the delegate is called for
the browsing part first when the user presses done or cancel in the browsing view controller.
Advertising can only be started once.
Fixed faulty asserts. Starting building disconnection of preliminaryConnectedPeer.
Made all delegate methods required and this is checked when setting the delegate.
Added a preliminary peer delegate.