Second commit

moved logic from server to apps
added info of flag on cannon screen