Added structs to replace array; added mouse handler that just writes on console