Added getImg(), moved globals into main(), working on keyboard functionality