Added touch input and cursor input, cleaned up scoring code.