Cleaned up version of working RPS app.