Added mobile detection and fixed showScore