refactor pacman, add core and server projects