fixed initialization errors in floor and main