Added logic for determine local winner. Added needed styles. Made code refactoring.