cloned from sample_app for playing field