implementing multi player, still buggy