Multiplayer functionality added. Works locally.